package com.hawk.eye.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.util.StringUtils;

/**
 * @className: RequestUrlConstant
 * @description:
 * @author: salad
 * @date: 2023/9/11
 **/
@Getter
@AllArgsConstructor
public enum RequestUrlConstant {

    /**
     *
     */
    PUSH_SERVICE_METADATA_URI("/hawk-eye/service/push-metadata"),

    /**
     *
     */
    PUSH_ALARM_DATA_URI("/hawk-eye/service/push-alarm-log");

    private final String uri;

    public String formatUri(String address) {
        if (!StringUtils.hasLength(address)) {
            return "";
        }
        if (address.endsWith("/")) {

        }
        return address + this.uri;
    }

}
